package com.daigoudao.web.service;

import java.util.List;

import com.daigoudao.web.model.SimpleBuyModel;

public interface ISimpleBuyService {

	public void addSimpleBuy(SimpleBuyModel simpleBuyModel) throws Exception;

	public List<SimpleBuyModel> querySimpleBuyModels(
			SimpleBuyModel simpleBuyModel) throws Exception;

	/**
	 * 根据id查询搭车求购信息
	 * 
	 * @param simpleId
	 * @return
	 * @throws Exception
	 */
	public SimpleBuyModel querySimpleBuy(int simpleId) throws Exception;

	/**
	 * 判断是否已搭车求购过
	 * 
	 * @param simpleBuyModel
	 * @return
	 * @throws Exception
	 */
	public boolean isRideBuy(SimpleBuyModel simpleBuyModel) throws Exception;
}
